Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: Initialise parser and evaluator #10

Merged
merged 1 commit into from
Sep 11, 2022
Merged

go: Initialise parser and evaluator #10

merged 1 commit into from
Sep 11, 2022

Conversation

juliaogris
Copy link
Member

Initialise parser and evaluator packages and wire them through all the
way to the frontend. Variable declaration via inference or type
declaration, as well as calls builtin function print with a variadic
number of arguments as literals or variables is possible now.

Tweak the frontend to actually print something with the initial demo
code.

Just like the lexer, many cues are taken from Thorston Ball's
Interpreter book source code.

Link: https://github.com/juliaogris/monkey

@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Visit the preview URL for this PR (updated for commit 8d42b20):

https://evy-lang--pr10-parsing-ck75tfre.web.app

(expires Sun, 18 Sep 2022 01:40:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@juliaogris juliaogris force-pushed the parsing branch 25 times, most recently from 88a019d to e8861b9 Compare September 9, 2022 12:48
Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of little comments. giving you an LGTM, although I think I have a little bit of review fatigue so may not have dug as deep as usual.

🥬

docs/syntax_grammar.md Outdated Show resolved Hide resolved
pkg/parser/parser.go Outdated Show resolved Hide resolved
pkg/parser/parser.go Outdated Show resolved Hide resolved
pkg/parser/parser.go Outdated Show resolved Hide resolved
Initialise parser and evaluator packages and wire them through all the
way to the frontend. Variable declaration via inference or type
declaration, as well as calls builtin function `print` with a variadic
number of arguments as literals or variables is possible now.

Tweak the frontend to actually print something with the initial demo
code.

Just like the lexer, many cues are taken from Thorston Ball's
Interpreter book source code.

Link: https://github.com/juliaogris/monkey
Signed-off-by: Julia Ogris <[email protected]>
@juliaogris juliaogris merged commit adba43c into master Sep 11, 2022
@juliaogris juliaogris deleted the parsing branch September 11, 2022 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants